<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@include file="/view/common/header-company.jspf" %>		
		
		<center><h1>职位发布</h1></center>
		<hr>
		
		<form action="<%=request.getContextPath() %>/PositionServlet?command=add" method="post" class="msg" data-validator-option="{timely:100,theme:'simple_right'}">
		  <div class="form-group" >
		  	<input type="text" class="form-control" id="name" name="name" data-rule="required;filter" placeholder="职位名称..." autofocus="autofocus" value ="${position.name }">
		  </div>
		    <div class="form-group" >
		  	<input type="text" class="form-control" id="salary1" name="salary1" data-rule="required; integer[+0]; match[lte, salary2]" data-msg-required="薪资必须填写" data-msg-match="哈哈哈傻逼"  placeholder="薪资（起）..." autofocus="autofocus" value ="${position.salary1 }">
		  </div>
		    <div class="form-group" >
		  	<input type="text" class="form-control" id="salary2" name="salary2" data-rule="required; integer[+0]" placeholder="薪资（止）..." autofocus="autofocus" value ="${position.salary2 }">
		  </div>
		  <div class="form-group">
		  	<textarea class="form-control" rows="5" id="duty" name="duty" placeholder="职责说明..." >${position.duty }</textarea>
		  </div>
		  <div class="form-group">
		  	<textarea class="form-control" rows="5" id="ability" name="ability" placeholder="能力要求..." >${position.ability }</textarea>
		  </div>
		  <input type="submit" class="btn btn-primary" value="发布"/>
		  <input type="button" class="btn btn-success" onclick="history.back();" value="返回"/>
		</form>
	</body>
</html>